<?php
/**
 * @filename SimpleTest.php
 * @author LD King
 * @encoding UTF-8
 * @date 2008-9-17 | 下午09:38:21
 * @package wp-simple-backup
 * @subpackage 
 * @usage 
 * @note 简单的测试代码
 * @copyright Copyright (c) 2007 - 2008 LD (http://mifunny.info)
 * @version $Id: $
 */

include_once 'compression-class.php';

$className = 'backupToZip';
$directory = '/home/http/mifunny/';
$exclude = array('/home/http/mifunny/wp-content/languages');


$compress = new $className('/home/http/mifunny/wp-content/backup-8126d');
$compress->compress($directory, $exclude);
$fileName = $compress->backupFile;
unset($compress);

echo "<br />？？ $fileName ？？大小：  ".filesize($fileName);


?>